package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AddressBook implements Serializable {

    public static final long serialVersionUID=1L;

    private Long id;

    //用户id
    private Long userId;

    //收货人
    private String consignee;

    //性别 0女 1男
    private Integer sex;

    //手机号
    private String phone;

    //省级编码
    private String provinceCode;

    //省级名称
    private String provinceName;

    //市级编码
    private String cityCode;

    //市级名称
    private String cityName;

    //区级编码
    private String districtCode;

    //区级名称
    private String districtName;

    //详细地址
    private String detail;

    //标签
    private String label;

    //是否默认地址 1默认，0否
    private Integer isDefault;

    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private LocalDateTime updateTime;

//    @TableField(fill = FieldFill.INSERT)   //插入时填充字段
//    private Long createUser;
//
//    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
//    private Long updateUser;


}
